/**
 * @author wyp
 * @description 购物车
 * @date 2023-2-18
 */
import axiosInstance from "../axiosInstance";

const shopcart = {

    getUserAllShopcart() {
        return axiosInstance.get("/shopCart/getAll")
    },
    updateNumberAndComputeMoney(shopCartVo) {
        return axiosInstance.post("/shopCart/updateNumberAndComputeMoney", shopCartVo)
    },
    payOrder(orderSn) {
        return axiosInstance.get(`/orderFront/payOrder?orderSn=${orderSn}`)
    },
    produceOrder(shopCartList) {
        return axiosInstance.post('/shopCart/produceOrder', shopCartList)
    },
    delteRow(id){
        return axiosInstance.get(`/shopCart/deleteRow?id=${id}`)
    }
}
export default shopcart;